<!--$Id: set_tx_recover.so,v 1.12 2002/02/23 20:05:28 bostic Exp $-->
<!--Copyright (c) 1997,2008 Oracle.  All rights reserved.-->
<!--See the file LICENSE for redistribution information.-->
<html>
<head>
<title>Berkeley DB Reference Guide: Release 3.1: DB_ENV-&gt;set_tx_recover</title>
<meta name="description" content="Berkeley DB: An embedded database programmatic toolkit.">
<meta name="keywords" content="embedded,database,programmatic,toolkit,btree,hash,hashing,transaction,transactions,locking,logging,access method,access methods,Java,C,C++">
</head>
<body bgcolor=white>
<table width="100%"><tr valign=top>
<td><b><dl><dt>Berkeley DB Reference Guide:<dd>Upgrading Berkeley DB Applications</dl></b></td>
<td align=right><a href="../upgrade.3.1/config.html"><img src="../../images/prev.gif" alt="Prev"></a><a href="../toc.html"><img src="../../images/ref.gif" alt="Ref"></a><a href="../upgrade.3.1/set_feedback.html"><img src="../../images/next.gif" alt="Next"></a>
</td></tr></table>
<p align=center><b>Release 3.1: DB_ENV-&gt;set_tx_recover</b></p>
<p>The redo parameter of the function passed to DB_ENV-&gt;set_tx_recover
used to be an integer set to any one of a number of #defined values.  In
the 3.1 release of Berkeley DB, the redo parameter has been replaced by the op
parameter which is an enumerated type of type db_recops.</p>
<p>If your application calls DB_ENV-&gt;set_tx_recover, then find the
function referred to by the call.  Replace the flag values in that
function as follows:</p>
<table border=1 align=center>
<tr><th>Previous flag</th><th>Berkeley DB 3.1 version flag</th></tr>
<tr><td>TXN_BACKWARD_ROLL</td><td>DB_TXN_BACKWARD_ROLL</td></tr>
<tr><td>TXN_FORWARD_ROLL</td><td>DB_TXN_FORWARD_ROLL</td></tr>
<tr><td>TXN_OPENFILES</td><td>DB_TXN_OPENFILES</td></tr>
<tr><td>TXN_REDO</td><td>DB_TXN_FORWARD_ROLL</td></tr>
<tr><td>TXN_UNDO</td><td>DB_TXN_ABORT</td></tr>
</table>
<table width="100%"><tr><td><br></td><td align=right><a href="../upgrade.3.1/config.html"><img src="../../images/prev.gif" alt="Prev"></a><a href="../toc.html"><img src="../../images/ref.gif" alt="Ref"></a><a href="../upgrade.3.1/set_feedback.html"><img src="../../images/next.gif" alt="Next"></a>
</td></tr></table>
<p><font size=1>Copyright (c) 1996,2008 Oracle.  All rights reserved.</font>
</body>
</html>
